diff options
| author | Factiven <[email protected]> | 2023-05-18 15:46:10 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-05-18 15:46:10 +0700 |
| commit | 759120279dbd83f787cc1005c0015955f8d64bc9 (patch) | |
| tree | be8d7dc74fe4a31d98dddbe59961e227649c49ec /pages/anime/watch/[...info].js | |
| parent | Update [param].js (diff) | |
| download | moopa-759120279dbd83f787cc1005c0015955f8d64bc9.tar.xz moopa-759120279dbd83f787cc1005c0015955f8d64bc9.zip | |
Emergency Update
> Temporary switching to zoro as a source until the API works again
Diffstat (limited to 'pages/anime/watch/[...info].js')
| -rw-r--r-- | pages/anime/watch/[...info].js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pages/anime/watch/[...info].js b/pages/anime/watch/[...info].js index fd6afd8..999dd0e 100644 --- a/pages/anime/watch/[...info].js +++ b/pages/anime/watch/[...info].js @@ -32,6 +32,8 @@ export default function Info({ sessions, id, aniId, provider }) { const router = useRouter(); + // console.log(epiData); + useEffect(() => { const defaultState = { epiData: null, @@ -74,7 +76,7 @@ export default function Info({ sessions, id, aniId, provider }) { setEpiData(epiData); } else { const res = await fetch( - `https://api.moopa.my.id/meta/anilist/watch/${id}` + `https://api.moopa.my.id/meta/anilist/watch/${id}?provider=zoro` ); const epiData = await res.json(); setEpiData(epiData); @@ -95,7 +97,7 @@ export default function Info({ sessions, id, aniId, provider }) { setAniData(aniData); } else { const res2 = await fetch( - `https://api.moopa.my.id/meta/anilist/info/${aniId}` + `https://api.moopa.my.id/meta/anilist/info/${aniId}?provider=zoro` ); aniData = await res2.json(); setAniData(aniData); |